#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# @file: entry/website/webconfig.py
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Contributors:
#   Dawei Yang   <davy.pristina@gmail.com>
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This file is released under BSD 2-clause license.

from config import *

# When DEBUG is set to True, Flask debugging console will be enabled.
DEBUG = False

# SECRET_KEY is the private key for session encryption.
SECRET_KEY = (
    open(os.path.join(ENTRY_ROOT, 'keys/webKey.txt'), 'rb').read().strip()
)

# BABEL_DEFAULT_LOCALE language is provided to the client when prefered
# locale is not available.
BABEL_DEFAULT_LOCALE = DEFAULT_LOCALE

# BABEL_DEFAULT_TIMEZONE is used to represent the date and times when
# user configuration is not available.
BABEL_DEFAULT_TIMEZONE = DEFAULT_TIMEZONE


# DEBUG_TB_INTERCEPT_REDIRECTS disables flask-DebugToolBar redirection
# hook
DEBUG_TB_INTERCEPT_REDIRECTS = False
